@S2 @framework
Feature: Move the Player
  As a player,
  I want to move my Pacman around on the board;
  So that I can earn all points and win the game.

  @S2.1
  Scenario: The player consumes
    Given the game has started,and  my Pacman is next to a square containing a pellet;
    When  I press an arrow key towards that square;
    Then  my Pacman can move to that square,and  I earn the points for the pellet,and  the pellet disappears from that square.

  @S2.2
  Scenario: The player moves on empty square
    Given the game has started,and my Pacman is next to an empty square;
    When  I press an arrow key towards that square;
    Then  my Pacman can move to that square and my points remain the same.

  @S2.3
  Scenario: The move fails
    Given the game has started,and my Pacman is next to a cell containing a wall;
    When  I press an arrow key towards that cell;
    Then  the move is not conducted.

#  @S2.4
#  Scenario : The player dies
#    Given the game has started,and my Pacman is next to a cell containing a ghost;
#    When  I press an arrow key towards that square;
#    Then  my Pacman dies,and  the game is over.
#
#  @S2.5
#  Scenario: Player wins, extends S2.1
#    When  I have eaten the last pellet;
#    Then  I win the game.
